package com.ding.api;

import com.ding.dto.Di_messageDto;
import com.ding.dto.Di_todoDto;
import com.plf.common.domain.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiongzhiwen
 * @version 1.0
 * @description: TODO
 * @date 2024/4/1 9:09
 */

@FeignClient(value = "sfding-svr", contextId = "sfding-svr", path = "/sfding-svr/di_todo")
@RestController
public interface Di_todoFeign {

    /**
     * 待办任务发送
     */
    @PostMapping("/sendToDo")
    ResponseDTO sendToDo(@RequestBody Di_todoDto todo);

    /**
     * 消息通知发送
     */
    @PostMapping("/sendMessage")
    ResponseDTO sendMessage(@RequestBody Di_messageDto message);

    /**
     * 完成赣政通待办
     * @param id
     * @return
     */
    @PostMapping("/todo/finishTodo")
    ResponseDTO finishTodo(@RequestParam String id);
}
